<template>
    <fl-navBar dark :border="false"  color="#333333" :fixed="true"  background-color="#fff"
        status-bar />
    <view class="success">
        <image src="@/static/images/success.png" />
        <text>{{type==1?'保存':'提交'}}成功</text>
    </view>
    <up-button @tap="goIndex" style="width:85%;margin: 200rpx auto 0;" type="primary" text="返回首页"></up-button>
</template>
  
<script setup lang="ts">
const props =defineProps(['type'])
const goIndex = () => {
    uni.switchTab({
        url: '/pages/business/index'
    })
}
</script>
  
<style lang="scss">
page {
    height: 100%;
    background-color: #fff;

    .success {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 200rpx;

        image {
            width: 100rpx;
            height: 100rpx;
        }

        text {
            margin-top: 30rpx;
            font-size: 30rpx;
        }
    }
}
</style>
  